#include <stdio.h>
int main()
{    	 	  	
    int year, flag;
    printf("Input year:\n");
    scanf("%d", &year);                                       //1

    if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) //2
        flag = 1;
    else                                                       //1
        flag = 0;

    if (flag == 1)	                                          //1
        printf("Yes");
    else                                                      //1
        printf("No");

    return 0;
}